package cn.com.yiqi.wsc.dao.customer;

import cn.com.yiqi.wsc.Ro.AddressVO;
import cn.com.yiqi.wsc.Ro.SimpleAddressVO;
import cn.com.yiqi.wsc.entity.customer.CustomerAddress;
import cn.com.yiqi.wsc.entity.customer.CustomerAddressExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CustomerAddressMapper {
    int countByExample(CustomerAddressExample example);

    int deleteByExample(CustomerAddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CustomerAddress record);

    int insertSelective(CustomerAddress record);

    List<CustomerAddress> selectByExample(CustomerAddressExample example);

    CustomerAddress selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CustomerAddress record, @Param("example") CustomerAddressExample example);

    int updateByExample(@Param("record") CustomerAddress record, @Param("example") CustomerAddressExample example);

    int updateByPrimaryKeySelective(CustomerAddress record);

    int updateByPrimaryKey(CustomerAddress record);

    List<AddressVO> findAddress(Integer userId);

    void cancelOldDefault(Integer userId);

    AddressVO findaddressByid(Integer id);

    List<SimpleAddressVO> findSimpleAddress(Integer id);
}